package cn.itcast.feign.config;

import feign.Logger;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：xiaoZhou
 * @ClassName : DefaultFeignConfiguration
 * @date ：Created in 2021/12/11 19:40
 */

@EnableFeignClients("cn.itcast.feign.client")
@Configuration
public class DefaultFeignConfiguration {

    @Bean
    public Logger.Level feignLogLevel(){
        return Logger.Level.BASIC;   // 日志级别为BASIC
    }

}
